{* Smarty *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="{$str.locale}">
<head>
	<title>{$title}</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="/css/base.css" media="all" />
</head>
<body>
	<div class="cwrap">
		{include file='base.include.exitbtn.tpl'}
		<h4>{$str.PDA}: {$str.contactlist}</h4>
		<table>
			<tr>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="idle" />
						<input type="submit" value="{$str.close_PDA}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="map" />
						<input type="submit" value="{$str.map}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="top" />
						<input type="submit" value="{$str.top}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="glossary" />
						<input type="submit" value="{$str.glossary}" />
					</form>
				</td>
			</tr>
		</table>
		<table>
			<tr>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="inbox" />
						<input type="submit" value="{$str.inbox}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="sent" />
						<input type="submit" value="{$str.sent}" />
					</form>
				</td>
			</tr>
		</table>
		<table>
			{foreach from=$contacts item=c}
			<tr>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="msgcompose" />
						<input type="hidden" name="i" value="{$c.id}" />
						<input {if $c.online}class="friend"{else}class="offline"{/if} type="submit" value="{$c.name}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="phonebook" />
						<input type="hidden" name="d" value="remove" />
						<input type="hidden" name="i" value="{$c.id}" />
						<input class="friend" type="submit" value="&minus;" />
					</form>
				</td>
			</tr>
			{/foreach}
		</table>
	</div>
</body>
